package org.air.demo.api.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import org.air.demo.api.ServiceOne;
import org.air.demo.api.ServiceTwo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ServiceOneImpl implements ServiceOne{

    private static final Logger log = LoggerFactory.getLogger(ServiceOneImpl.class);

    private ServiceTwo serviceTwo;

    public void setServiceTwo(ServiceTwo serviceTwo) {
        this.serviceTwo = serviceTwo;
    }

    @Override
    public void invoke() {
        log.info("ServiceOneImpl invoke start!");
        serviceTwo.invoke();
        log.info("ServiceOneImpl invoke end!");
    }

}
